package Utilidades;

import org.newdawn.slick.geom.Rectangle;
import org.newdawn.slick.geom.Vector2f;

public class Rectangulo extends Rectangle {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Vector2f vDireccion;

	public Rectangulo(float x, float y, float width, float height,
			boolean colision) {
		super(x, y, width, height);
		vDireccion = new Vector2f(this.getCenterX(), this.getCenterY());
	}

	public Vector2f getvDireccion() {
		return vDireccion;
	}

	public void setvDireccion(Vector2f v) {
		this.setCenterX(v.x);
		this.setCenterY(v.y);
		vDireccion = v;
	}

}
